package kz.asoft.utils;

import java.util.ResourceBundle;

import oracle.javatools.resourcebundle.BundleFactory;


public class Utils {
    public Utils() {
    }

    /**
     * Get text from resource bundle by key
     * @param key
     * @return
     */
    public static String getLocalizedText(String key) {
        String text = "";
        ResourceBundle rb = BundleFactory.getBundle("view.ViewControllerBundle");
        if (rb != null) {
            text = rb.getString(key);
        }
        return text;
    }
}
